package com.example.module_happy.model

import com.example.lib_base.BaseResponse
import com.example.lib_http.RetrofitManager
import com.example.module_happy.api.HappyApiService
import com.example.module_happy.entity.MultiTypeEntity
import com.example.module_happy.entity.SimpleVideoEntity
import retrofit2.http.Query

class HappyModel {
   private val api:HappyApiService=RetrofitManager.instance.create(HappyApiService::class.java)
    suspend fun getMultiType(): BaseResponse<List<MultiTypeEntity>>{
        return api.getMultiType()
    }
    suspend fun getSimpleVideo(page:Int, size:Int):BaseResponse<List<SimpleVideoEntity>>{
        return api.getSimpleVideo(page,size)
    }

}